perm filename COMP.PAL[HAL,HE]12 blob sn#199572 filedate 1976-02-04 generic text, type C, neo UTF8
COMMENT āŠ—   VALID 00002 PAGES
C REC  PAGE   DESCRIPTION
C00001 00001
C00002 00002	.TITLE  Pseudo-code
C00004 ENDMK
CāŠ—;
.TITLE  Pseudo-code

; File that requires all the compiled files.  This is meant to be
;overlaid on top of the interpreter. 


; Only need to insert this during first pass
    .IF1

       .MACRO ASCIE STR
       .ASCIZ STR
       .EVEN
       .ENDM

	.MACRO MAKEOP CNAME, ANAME	;Compiler name, Address name
	XX	CNAME
	.ENDM

    .MACRO PLACE PHYS,VIRT
        .OFFSET 0
        .=PHYS
        .OFFSET VIRT-PHYS
    .ENDM

    K3 == 0

    .INSRT HALHED.PAL[HAL,HE]
    STSW  REAL,1    ;1 => use the COMP.AL files, otherwise COMT.

    .INSRT  INTOPS.PAL[HAL,HE]
            ;The interpreter operation table
    .ENDC

.IFZ K3
    . = PCODE       ;Beginning of instruction space
.IFF
    PLACE 160000,PCODE
.ENDC

	#PCVERSION	;First word is the version number

.IFNZ REAL
.PRINT /Using the COMP.AL files
/
; Make sure you are aliased to the area you have the COMP.AL files on.
.INSRT	COMP.AL0
.INSRT	COMP.AL1
.INSRT	COMP.AL2
;.INSRT	COMP.AL3
.IFF
.PRINT /Using COMT
/
.INSRT	COMT.PAL[HAL,HE]
.ENDC

.IF2
	FOO==.
	.INFO <First location after pseudo code = >,\FOO
	.IFL ARMCODE-FOO
	  .ERROR Pseudo code may run into the arm code.
	.ENDC
.ENDC

.END